﻿#ifndef WIDGET_H
#define WIDGET_H
#include "customerevent.h"
#include <QWidget>
#include <JQHttpServer>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    void initializeHttpServer(int port);
    void convert2Json();
    void convertFromJson(QByteArray data);//解析
private slots:
    void on_btn_startHttpSever_clicked();

protected:
    virtual bool event(QEvent *event) override;
//    bool eventFilter(QObject*obj,QEvent *e);

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
